@extends('layouts.main')

@section('content')
    @foreach ($articles as $article)
    <div class="hero-unit">
        <h2>
            {{$article->title}}
        </h2>
        <p>
            {{$article->created_at}} |
            <a href="/article/edit/{{$article->id}}">编辑</a> |
            <a href="/article/del/{{$article->id}}">删除</a>
        </p>
        {!! $article->content !!}
        <p>
            <a class="btn btn-primary btn-large" href="/article/view/{{$article->uuid}}">参看更多 »</a>
        </p>
    </div>
    @endforeach

    {{ $articles->links('tbqphplib-article::paginator') }}
@endsection
